package com.mms.service;

import com.mms.entity.model.JsonData;
import com.mms.entity.model.PagerTool;
import com.mms.entity.service.EntityService;
import com.mms.pojo.SysOperate;
import com.mms.pojo.SysRoleOperate;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * Created by dangz on 2017-5-22.
 */
public interface SysOperateService extends EntityService<SysOperate> {
    SysOperate getOperateInPermission(SysRoleOperate operateid, Long accountid);
    boolean checkPermission(SysRoleOperate operateid, Long accountid);
    List<SysOperate> getOperatesInPermissionByMenu(Long menuid, Long accountid);
    List<SysOperate> getOperatesInPermission(Long menuid, String role);
    boolean checkPermissionByRole(SysRoleOperate operateid, String role);
    JsonData getList(PagerTool pt, HttpServletRequest req);
    boolean checkPermission(String op, Long menu);
}
